<?php 
/* SVN FILE: $Id$ */
/* Servicio Test cases generated on: 2009-12-06 01:12:50 : 1260077510*/
App::import('Model', 'Servicio');

class ServicioTestCase extends CakeTestCase {
	var $Servicio = null;
	var $fixtures = array('app.servicio', 'app.detalle_jornada', 'app.evento');

	function startTest() {
		$this->Servicio =& ClassRegistry::init('Servicio');
	}

	function testServicioInstance() {
		$this->assertTrue(is_a($this->Servicio, 'Servicio'));
	}

	function testServicioFind() {
		$this->Servicio->recursive = -1;
		$results = $this->Servicio->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Servicio' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'estado'  => 'Lorem ipsum dolor sit ame'
		));
		$this->assertEqual($results, $expected);
	}
}
?>